<?php

namespace api\channel\jutuike;

class MeituanCouponUnion extends ActivityJutuikeChannle
{
    /**
     * 美团券包接口
     * @param $params
     * @return array|mixed
     */
    public function couponAdList($page = 1, $pageSize = 10) {
        $url = $this->baseUrl . '/Meituan/coupon_ad_list';
        $data = [
            'apikey'   => $this->apikey,
            'page'     => $page,
            'pageSize' => $pageSize,
        ];
        $res = curlPost($url, $data);
        $res = json_decode($res, true);
        return $res['data'] ?? [];
    }
}